package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Pig;
import com.yanu.t2s.mapper.PigMapper;
import com.yanu.t2s.service.PigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PigServiceImpl implements PigService {
    @Autowired
    PigMapper pigMapper;

    @Override
    public Pig findByIDpig(int pigid) {
        return pigMapper.findByIDpig(pigid);
    }

    @Override
    public List<Pig> findAllPig() {
        return pigMapper.findAllPig();
    }
}
